package com.enqualcomm.kids.network.socket.request;

import com.enqualcomm.kids.BuildConfig;
import com.enqualcomm.kids.network.socket.response.AddTerminalResult;

import java.lang.reflect.Type;

/**
 * Created by yinzhiqun on 2015/10/15.
 */
public class AddTerminalParams extends BasicParams {
    private String imei;
    private String userkey;
    private String userid;
    private String cid;
    private String channel = BuildConfig.COMPANY;
    private String authtype = BuildConfig.AUTH_TYPE;

    private String mobile;
    private String terminalname;
    private String relation;
    private int height;
    private int weight;
    private int gender;

    private String mobile2;
    private int mobiletype;

    private String areacode;
    private String areacode2;

    public AddTerminalParams(String imei, String cid, String userid, String userkey) {
        super("addterminal");
        this.imei = imei;
        this.cid = cid;
        this.userid = userid;
        this.userkey = userkey;
        this.mobile = "";
        this.terminalname = "";
    }

    public AddTerminalParams(String imei, String cid, String userid, String userkey,
                             String mobile, String terminalname, String relation, int height, int weight, int gender,
                             String mobile2, int mobiletype, String areacode, String areacode2) {
        super("addterminal");
        this.imei = imei;
        this.cid = cid;
        this.userid = userid;
        this.userkey = userkey;
        this.mobile = mobile;
        this.terminalname = terminalname;
        this.relation = relation;
        this.height = height;
        this.weight = weight;
        this.gender = gender;
        this.mobile2 = mobile2;
        this.mobiletype = mobiletype;
        this.areacode = areacode;
        this.areacode2 = areacode2;
    }

    @Override
    public Type getResponsePojo() {
        return AddTerminalResult.class;
    }
}
